<h2>Edytuj ogłoszenie</h2>

<form role="form" action="/advertisements/edit/<?php echo $advertisement['Advertisement']['id']; ?>" method="POST">
	<div class="form-group">
		<label for="title">Tytuł:</label>
		<input type="text" class="form-control" value="<?php echo $advertisement['Advertisement']['title']; ?>" id="title" placeholder="Tytuł" name="title" />
	</div>
	
	<div class="form-group">
		<label for="content">Treść:</label>
		<textarea class="form-control" rows="3" name="content" id="content"><?php echo $advertisement['Advertisement']['content']; ?></textarea>
	</div>
	
	<input type="hidden" id="author_id" name="author_id" value="<?php echo $advertisement['User']['id']; ?>" /><br />
	<input type="hidden" id="status_id" name="status_id" value="<?php echo $advertisement['Status']['id']; ?>" /><br />
	<button type="Submit" class="btn btn-default" >Zapisz</button>
	<a class="btn btn-default" href="/advertisements" role="button">Powrót</a>
</form>


